import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {ChannelComponent} from "./channel.component";
import {ChannelAddComponent} from "./channel-add/channel-add.component";
import {ChannelUpdateComponent} from "./channel-update/channel-update.component";
import {ChannelAssignReceiverComponent} from "./channel-assign-receiver/channel-assign-receiver.component";

const routes: Routes = [
  {
    path: "",
    component: ChannelComponent
  },
  {
    path: "add",
    component: ChannelAddComponent
  },
  {
    path: "update",
    component: ChannelUpdateComponent
  },
  {
    path: "assign-receiver",
    component: ChannelAssignReceiverComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ChannelRoutingModule { }
